<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Family extends CI_Controller {

	public function __construct()
    {
    	parent::__construct();
		if(!isset($_SESSION)): session_start(); endif;
		$this->load->model('users_model');

    }

	public function index()
	{
		$data['records'] = $this->users_model->get_user();
		$data['recepients'] = $this->users_model->get_recepient();
		$data['title']= "Sign in My Life My Eulogy";
		$data['main_content'] = 'home/family_view';
		$this->load->view('include/template', $data);
	}

	function create_family(){
		$query = $this->users_model->create_recepient_family();
		echo ($query)? 'true':'false';
	}


}// end of controller